#include<stdio.h>
#include<stdlib.h>
int main()
{
	float date1, date2;
	char op;
	printf("please enteranexpresion:");
	scanf("%f%c%f", &date1, &op, &date2);
	switch (op)
	{
	case '+':
		printf("%2.2f+%2.2f=%2.2f\n", date1, date2, date1 + date2);
		break;
	case '-':
		printf("%2.2.f-%2.2f=%2.2.f\n", date1, date2, date1 - date2);
		break;
	case '*':
		printf("%2.2f*%2.2f=%2.2f\n", date1, date2, date1*date2);
		break;
	case '/':
		printf("%2.2f/%2.2f=%2.2f\n", date1, date2, date1 / date2);
		break;
	default:
		printf("do not know\n");
	}
	system("pause");
	return 0;
}